<template>
  <div>
    <h1>人员管理</h1>
  </div>
</template>

<script>
export default {
  data() {
    return {
      roles: [],
    };
  },
  components: {},
  created() {
    // 验证是否有权限
    this.$axios({
      url: '/admin/role',
      methods: 'get',
      params: {
        userName: this.$cookie.get('userName'),
      },
    }).then((res) => {
      console.log(res.data, '权限数据');
      this.$message({
        message: '欢迎你，管理员',
        type: 'success',
      });
    });
  },
};
</script>

<style></style>
